package com.fan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fan.entity.Order;
import com.fan.entity.TOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@Component
public interface OrderDao extends BaseMapper<Order>{
  List<TOrder> selectOrder(@Param("mobile")String mobile, @Param("courseTitle")String courseTitle, @Param("orderNo")String orderNo, @Param("teacherName")String teacherName, @Param("status")String status, @Param("payType")String payType, @Param("startTime")String startTime, @Param("editTime")String editTime);

  Order getOrderStatusByCourseIdAndHuiYuanId(@Param("id") String id,@Param("HuiYuanId") String HuiYuanId);
//  List<TOrder> selectOrder(@Param("mobile")String mobile, @Param("courseTitle")String courseTitle, @Param("orderNo")String orderNo, @Param("teacherName")String teacherName, @Param("status")Byte status, @Param("payType")Byte payType, @Param("gmtCreate")Date gmtCreate);

//  List<TOrder> selectOrder(@Param("courseTitle") String courseTitle, @Param("orderNo") String orderNo,
//                           @Param("teacherName") String teacherName, @Param("status") Byte status,
//                           @Param("payType") Byte payType, @Param("mobile") String mobile);


}